{template 'web/_header'}
<ul class="nav nav-tabs">
    <li class="active"><a href="{php echo $this->createPluginWebUrl('express/express')}">快递预处理</a></li>
    <li class=""><a href="{php echo $this->createPluginWebUrl('express/shipment')}">批量发货</a></li>
</ul>

<div class='panel panel-default'>
    <div class='panel-heading'>
        快递预处理设置
    </div>
    <div class='panel-body'>

        <table class="table">
            <thead>
            <tr>
                <th>快递名称</th>
                <th>发件区域</th>
                <th>发件人</th>
                <th>发件手机</th>
                <th>发件人详细地址</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
                {loop $expressLists $list}
                    <tr>
                        <td>{$list['dispatchname']}</td>
                        <td>{$list['province']}/{$list['city']}/{$list['district']}</td>
                        <td>{$list['sender']}</td>
                        <td>{$list['phone']}</td>
                        <td>{$list['address']}</td>
                        <td>
                            <a class='btn btn-default' title="编辑" href="{php echo $this->createPluginWebUrl('express/express', array('op' => 'editor', 'id' => $list['id']))}"><i class='fa fa-edit'></i></a>
                            <a class='btn btn-default' title="订单号" href="{php echo $this->createPluginWebUrl('express/courier', array('op' => 'lists', 'expressid' => $list['id']))}"><i class='fa fa-list'></i></a>
                            <a class='btn btn-default' title="删除" href="{php echo $this->createPluginWebUrl('express/express', array('op' => 'delete', 'id' => $list['id']))}" onclick="return confirm('确认删除此预处理快递吗？');return false;"><i class='fa fa-remove'></i></a>
                        </td>
                    </tr>
                {/loop}
            </tbody>
        </table>
    </div>
    <div class='panel-footer'>
        <a class='btn btn-default' href="{php echo $this->createPluginWebUrl('express/express', array('op' => 'editor'))}"><i class="fa fa-plus"></i> 添加新快递</a>
    </div>
</div>

{template 'common/footer'}